package com.ibeeking.found.org.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName EmployeeAddressParam
 * @Description
 * @Author ibeeking
 * @Date 2021-01-27 18:50
 **/
@Data
@Accessors(chain = true)
public class EmployeeAddressParam implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotNull(message = "id不能为空!", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 收货人号码
     */
    @NotBlank(message = "收货人号码不能为空!")
    private String phone;

    /**
     * 收货人姓名
     */
    @NotBlank(message = "收货人姓名不能为空!")
    private String name;

    /**
     * 省份/直辖市编码
     */
    @NotBlank(message = "省份/直辖市不能为空!")
    private String provinceCode;

    /**
     * 城市编码
     */
    @NotBlank(message = "城市不能为空!")
    private String cityCode;

    /**
     * 县/区编码
     */
    @NotBlank(message = "县/区不能为空!")
    private String regionCode;

    /**
     * 街道编码
     */
    @NotBlank(message = "街道不能为空!")
    private String streetCode;

    /**
     * 详细地址
     */
    private String detailAddress;

    /**
     * 是否默认地址 0-否 1-是
     */
    @NotNull(message = "请选择是否默认!")
    private Integer hasDefault;

    private Long employeeId;


}
